/**
 * Copyright (C) 2025 ROKAE (Beijing) Technology Co., LTD.
 * All Rights Reserved.
 *
 * Information in this file is the intellectual property of Rokae Technology Co., Ltd,
 * And may contains trade secrets that must be stored and viewed confidentially.
 *
 * @file JsonWorker.cpp
 * @brief 执行 JSON 指令任务的工作类
 */
#include "JsonWorker.h"

JsonWorker::JsonWorker(const QJsonObject &json)
    :m_json(json)
{
    setAutoDelete(true);
}

void JsonWorker::run()
{
    QJsonArray result = xplugin::xPluginInterface().commandCustomData(nullptr, m_json);
    emit finished(result);
}
